<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('修改密码')"/>
</head>
<body class="gray-bg">
     <div class="container-div">

         <div class="col-sm-12 select-table table-striped">
             <table id="bootstrap-table" data-mobile-responsive="true"></table>
         </div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('devMenu:devInfo:view')}]];
        var removeFlag = [[${@permission.hasPermi('devMenu:devInfo:view')}]];
        var prefix = ctx + "dev/devInfo";
        var datas = [[${@dict.getType('sys_normal_disable')}]];

        $(function() {
            var options = {
                url: prefix + "/listSetting",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/editSetting/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "设备",
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'infoId',
					title : 'ID',
					visible: false
				},
				{
					field : 'devId',
					title : '设备编号',
					sortable: true
				},
				{
					field : 'companyName',
					title : '所属公司',
					sortable: true
				},
				{
					field : 'devCompany',
					title : '厂商及型号',
					sortable: true
				},
				{
					field : 'devMachineNo',
					title : '设备机器号',
					sortable: true
				},
				{
					field : 'belongTypeName',
					title : '适用餐别',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.infoId + '\')"><i class="fa fa-edit"></i>设置</a> ');

						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>
